package section_05;

public class chapter_21 {
    public static void main(String[] args) {
        int[] arr = {1, 2, 3};
        System.out.println(arr[3]); // java.lang.ArrayIndexOutOfBoundsException

        arr = null;
        System.out.println(arr[0]); // java.lang.NullPointerException
    }
}
